import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const Home = () => import('@/views/home')

const Farm = () => import('@/views/farm')

const Faq = () => import('@/views/faq')

const Vault = () => import('@/views/vault')

const Rules = () => import('@/views/rules')



const routes = [{
  path: '',
  redirect: '/home'
}, {
  path: '/home',
  component: Home
}, {
  /** 农场 */
  path: '/farm',
  component: Farm
}, {
  /**常见问题 */
  path: '/faq',
  component: Faq
}, {
  /**金库 */
  path: '/vault',
  component: Vault
}, {
  /**规则 */
  path: '/rules',
  component: Rules
}]

const router = new VueRouter({
  routes,
  mode: "history"
})

export default router;